From: Felix Fietkau Date: Tue, 5 Aug 2008 23:35:30 +0000 (+0000) Subject: because of limitations in hostpython, numpy has to depend on python 2.5 development... X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=49c6ecb8cfc85f0969f5e165da8023c2bb603b03;p=openwrt%2Fsvn-archive%2Fpackages.git because of limitations in hostpython, numpy has to depend on python 2.5 development headers and binaries SVN-Revision: 12186 --- diff --git a/lang/numpy/Makefile b/lang/numpy/Makefile index 4179f0ac5..217c975f9 100644 --- a/lang/numpy/Makefile +++ b/lang/numpy/Makefile @@ -30,7 +30,7 @@ define Package/numpy/description endef define Build/Compile - cd $(PKG_BUILD_DIR) ; $(CONFIGURE_VARS) $(MAKE_VARS) $(STAGING_DIR)/host/bin/python ./setup.py install --prefix="$(PKG_INSTALL_DIR)/usr" + cd $(PKG_BUILD_DIR) ; $(CONFIGURE_VARS) $(MAKE_VARS) python2.5 ./setup.py install --prefix="$(PKG_INSTALL_DIR)/usr" sed -i "s/UCS4/UCS2/g" $(PKG_INSTALL_DIR)/usr/lib/python2.5/site-packages/numpy/core/multiarray.so endef @@ -40,3 +40,11 @@ define Package/numpy/install endef $(eval $(call BuildPackage,numpy)) + +define Require/python25-dev +[ -e /usr/include/python2.5/pyconfig.h ] +endef + +$(eval $(call Require,python25-dev, \ + Please install Python 2.5 (including development headers and libraries) \ +))